package net.hn.hnms.biz.mine.domain;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.Objects;

/**
 * Author: PanSX
 * Date: 2022/8/5 14:37
 */
@Entity
@Table(name = "dim_mining_face", schema = "public", catalog = "huaneng-smart-mine")
public class DimMiningFace {
    private String miningFaceId;
    private String mineCode;
    private String miningFaceName;
    private String miningFaceCode;
    private BigDecimal miningFaceHigh;
    private BigDecimal miningFaceLength;
    private BigDecimal miningFaceAngle;
    private BigDecimal miningFaceThick;
    private String createUserId;
    private Date createTime;
    private String updateUserId;
    private Date updateTime;
    private String delFlag;

    @Id
    @Column(name = "mining_face_id")
    public String getMiningFaceId() {
        return miningFaceId;
    }

    public void setMiningFaceId(String miningFaceId) {
        this.miningFaceId = miningFaceId;
    }

    @Basic
    @Column(name = "mine_code")
    public String getMineCode() {
        return mineCode;
    }

    public void setMineCode(String mineCode) {
        this.mineCode = mineCode;
    }

    @Basic
    @Column(name = "mining_face_name")
    public String getMiningFaceName() {
        return miningFaceName;
    }

    public void setMiningFaceName(String miningFaceName) {
        this.miningFaceName = miningFaceName;
    }

    @Basic
    @Column(name = "mining_face_code")
    public String getMiningFaceCode() {
        return miningFaceCode;
    }

    public void setMiningFaceCode(String miningFaceCode) {
        this.miningFaceCode = miningFaceCode;
    }

    @Basic
    @Column(name = "mining_face_high")
    public BigDecimal getMiningFaceHigh() {
        return miningFaceHigh;
    }

    public void setMiningFaceHigh(BigDecimal miningFaceHigh) {
        this.miningFaceHigh = miningFaceHigh;
    }

    @Basic
    @Column(name = "mining_face_length")
    public BigDecimal getMiningFaceLength() {
        return miningFaceLength;
    }

    public void setMiningFaceLength(BigDecimal miningFaceLength) {
        this.miningFaceLength = miningFaceLength;
    }

    @Basic
    @Column(name = "mining_face_angle")
    public BigDecimal getMiningFaceAngle() {
        return miningFaceAngle;
    }

    public void setMiningFaceAngle(BigDecimal miningFaceAngle) {
        this.miningFaceAngle = miningFaceAngle;
    }

    @Basic
    @Column(name = "mining_face_thick")
    public BigDecimal getMiningFaceThick() {
        return miningFaceThick;
    }

    public void setMiningFaceThick(BigDecimal miningFaceThick) {
        this.miningFaceThick = miningFaceThick;
    }

    @Basic
    @Column(name = "create_user_id")
    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "update_user_id")
    public String getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId;
    }

    @Basic
    @Column(name = "update_time")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "del_flag")
    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DimMiningFace that = (DimMiningFace) o;
        return Objects.equals(miningFaceId, that.miningFaceId) &&
                Objects.equals(mineCode, that.mineCode) &&
                Objects.equals(miningFaceName, that.miningFaceName) &&
                Objects.equals(miningFaceCode, that.miningFaceCode) &&
                Objects.equals(miningFaceHigh, that.miningFaceHigh) &&
                Objects.equals(miningFaceLength, that.miningFaceLength) &&
                Objects.equals(miningFaceAngle, that.miningFaceAngle) &&
                Objects.equals(miningFaceThick, that.miningFaceThick) &&
                Objects.equals(createUserId, that.createUserId) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(updateUserId, that.updateUserId) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(delFlag, that.delFlag);
    }

    @Override
    public int hashCode() {
        return Objects.hash(miningFaceId, mineCode, miningFaceName, miningFaceCode, miningFaceHigh, miningFaceLength, miningFaceAngle, miningFaceThick, createUserId, createTime, updateUserId, updateTime, delFlag);
    }
}
